import service from "@/utils/request";

export default {
    getUserList(page, limit, username, nickName) {
        return service.get(`/admin/acl/user/${page}/${limit}?username=${username}&nickName=${nickName}`)
    },
    addUser(userInfo) {
        return service.post('/admin/acl/user/save', userInfo)
    },
    deleteUser(id) {
        return service.delete(`/admin/acl/user/remove/${id}`)
    },
    updateUser(userInfo) {
        return service.put('/admin/acl/user/update', userInfo)
    },
    getUserAssign(userId) {
        return service.get(`/admin/acl/user/toAssign/${userId}`)
    },
    updateAssign(userId, roleId) {
        return service.post(`/admin/acl/user/doAssign?userId=${userId}&roleId=${roleId}`)
    }
}
